﻿@model Coleotrack.Models.ChangePasswordViewModel
@using Coleotrack.Resources

@{
    ViewBag.Title = "Change password";
}

@section Head {

}

@section SubMenu {

     @Html.Partial("SubMenu") 

}

<h1>Change password</h1>
<div class="margin">
        @using (Html.BeginForm())
        {

           @Html.ValidationSummary(false, labels.ErrorsOccured)

           <br />

           <div class="label">
            @Html.LabelFor(m => m.Password, "Current password")
            <p class="description">Type in your current password.</p>
           </div>

           <div class="input text">
            @Html.PasswordFor(m => m.Password)
           </div>

           <br />

           <div class="label">
            @Html.LabelFor(m => m.NewPassword, "New password")
            <p class="description">Type in your new password.</p>
           </div>

           <div class="input text">
            @Html.PasswordFor(m => m.NewPassword)
           </div>

           <br />

           <div class="label">
            @Html.LabelFor(m => m.NewPasswordConfirmation, "Confirm new password")
            <p class="description">Confirm your new password for security purposes.</p>
           </div>

           <div class="input text">
            @Html.PasswordFor(m => m.NewPasswordConfirmation)
           </div>

           <div class="commands">
            <div class="submit"><input type="submit" value="Submit" /></div>
            <div class="cancel">@Html.ActionLink("Cancel", "Index", "Home", new { area = "" }, null)</div>
           </div>
            }
</div>


